package cn.common;

import java.util.HashMap;
import java.util.Map;

public class Context {
	private Map dataMap = new HashMap();
	
	public void setData(String key ,Object value){
		if(key == null){
			return ;
		}
		if(value == null){
			dataMap.remove(key);
		}else{
			dataMap.put(key, value);
		}
		
	}
	
	public Object getData(String key){
		if(key == null){
			return null;
		}
		return dataMap.get(key);
	}
}
